package vip.xiaonuo.supplier.modular.custom.customtype.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户类型实体
 *
 * @author Mr.wu
 * @date  2025/03/15 17:38
 **/
@Getter
@Setter
@TableName("SUPPLIER_CUSTOM_TYPE")
public class SupplierCustomType extends CommonEntity {

    /** 分类ID */
    @TableId
    @Schema(description = "分类ID")
    private String id;

    /** 客户类型 */
    @Schema(description = "客户类型")
    private String customTypeName;

    /** 类型状态 */
    @Schema(description = "类型状态")
    @Trans(type = TransType.DICTIONARY, key = "COMMON_STATUS")
    private String customTypeStatus;

    /** 客户折扣 */
    @Schema(description = "客户折扣")
    private BigDecimal customTypeDiscount;

    /** 适用价格 */
    @Schema(description = "适用价格")
    private Integer customTypePrice;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;

    /** 数据归属 */
    @Schema(description = "数据归属")
    private String companyId;
}
